package com.byxy.demo01.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.demo01.dao.ItemsDao;
import com.byxy.demo01.entity.Items;
import com.byxy.demo01.service.ItemsService;

@Service
@Transactional

public class ItemsServiceImpl implements ItemsService {
	@Autowired 
	private ItemsDao itemsdao;
	@Override
	public void add(Items item) {
		// TODO Auto-generated method stub
		itemsdao.add(item);
	}


	@Override
	public java.util.List<Items> list() {
		// TODO Auto-generated method stub
		return itemsdao.list();
	}
}
